﻿using Acr.UserDialogs;
using Android.App;
using Android.Content.PM;
using Android.OS;

namespace myfirstmaui
{
    [Activity(Theme = "@style/Maui.SplashTheme", MainLauncher = true, LaunchMode = LaunchMode.SingleTop, ConfigurationChanges = ConfigChanges.ScreenSize | ConfigChanges.Orientation | ConfigChanges.UiMode | ConfigChanges.ScreenLayout | ConfigChanges.SmallestScreenSize | ConfigChanges.Density)]
    public class MainActivity : MauiAppCompatActivity
    {
        //这里，状态栏不要了.
        protected override void OnCreate(Bundle? savedInstanceState)
        {
            //全透明任务栏
            Window.SetFlags(
                Android.Views.WindowManagerFlags.TranslucentNavigation, 
                Android.Views.WindowManagerFlags.TranslucentNavigation);

            //下面是导航，就是什么□ 员亚，箭头亚..
            Window.SetStatusBarColor(Android.Graphics.Color.Transparent);
            Window.SetNavigationBarColor(Android.Graphics.Color.Transparent);
            base.OnCreate(savedInstanceState);
            UserDialogs.Init(this);
        }
    }
}
